package com.zhoujing.cinema.service;

import com.github.pagehelper.PageInfo;
import com.zhoujing.cinema.entity.*;

import java.util.List;


public interface MovieService {
    public Movie findMovieById(Integer id);
    public PageInfo<Comment> findCommentByMovieId(Integer id, Integer pageNum, int pageSize);
    public void insertWish(Wish wish);
    public void updateMovieWish(Movie movie);
    public Wish selectWish(Integer id);
    public Comment selectComment(Integer id);
    public void insertComment(CommentDto comment);
    public List<Comment> selectCommentByMovie(Integer id);
    public void updateMovieScore(Movie movie);
    public List<Banner> selectBanner();
    public List<Movie> findType1Eight();
    public List<Movie> findType1Ten();
    public List<Movie> findType2Eight();
    public List<Movie> findType2Ten();
    public List<Movie> findType3Eight();
    public List<Movie> findType3Ten();
    public PageInfo<Movie> findMovieSearch(String name,Integer pageNum, int pageSize);
    public List<Type> findType();
    public List<Year> findYear();
    public List<Country> findCountry();
    public PageInfo<Movie> findMovieType1(Integer pageNum, int pageSize);
    public PageInfo<Movie> findMovieType2(Integer pageNum, int pageSize);
    public PageInfo<Movie> findMovieType3(Integer pageNum, int pageSize);
    public PageInfo<Movie> selectMovieWithQuery1(MovieDto movieDto,Integer pageNum, int pageSize);
    public PageInfo<Movie> selectMovieWithQuery2(MovieDto movieDto,Integer pageNum, int pageSize);
    public PageInfo<Movie> selectMovieWithQuery3(MovieDto movieDto,Integer pageNum, int pageSize);
    public void insertMovie(Movie movie);
    public PageInfo<Movie> selectAllMovie(Integer pageNum, int pageSize);
    public Movie selectMovieByIds(Integer id);
    public void updateMovie(Movie movie);
    public List<Movie> selectType1();
}
